# Mod_Autoindex
<IfModule mod_autoindex.c>
  #    
	Options -Indexes
</IfModule>

# Mod_Rewrite
<IfModule mod_rewrite.c>
	RewriteEngine On
    # Redirect index to Root
    RewriteCond %{THE_REQUEST} ^.*/index\.php 
    RewriteRule ^(.*)index.php$ /$1 [R=301,L] 
    # Redirect many / to one
    RewriteCond %{THE_REQUEST} //
    RewriteRule .* /$0 [R=301,L]
</IfModule>

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  #  mod_rewrite
  RewriteEngine On

  #     ,  /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  #      index.php
  RewriteRule . index.php
</IfModule>